#ifndef INPUTEVENT_H
#define INPUTEVENT_H

#include <QEvent>
#include "InputTypes.h"

class InputEvent : public QEvent
{
public:
  InputEvent(const ButtonType& buttonType, bool pressed);

  static const QEvent::Type mType = static_cast<QEvent::Type>(QEvent::User+21);

  const ButtonType& buttonType() const;
  bool buttonPressed() const;

private:
  ButtonType mButtonType;
  bool mButtonPressed;
};

#endif
